package com.Entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * RecNewsListInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "recNewsListInfo", catalog = "smartsofa")
public class RecNewsListInfo implements java.io.Serializable {

	// Fields

	private long recInfoId;
	private Integer userId;
	private long newsId;
	private Date updateTime;

	// Constructors

	/** default constructor */
	public RecNewsListInfo() {
	}

	/** minimal constructor */
	public RecNewsListInfo(long recInfoId) {
		this.recInfoId = recInfoId;
	}

	/** full constructor */
	public RecNewsListInfo(long recInfoId, Integer userId, long newsId,
			Date updateTime) {
		this.recInfoId = recInfoId;
		this.userId = userId;
		this.newsId = newsId;
		this.updateTime = updateTime;
	}

	// Property accessors
	@Id
	@Column(name = "recInfoId", unique = true, nullable = false)
	public long getRecInfoId() {
		return this.recInfoId;
	}

	public void setRecInfoId(long recInfoId) {
		this.recInfoId = recInfoId;
	}

	@Column(name = "userId")
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "newsId")
	public long getNewsId() {
		return this.newsId;
	}

	public void setNewsId(long newsId) {
		this.newsId = newsId;
	}

	@Column(name = "updateTime", length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}